﻿using System;
using System.Linq;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;

namespace DEMO_TEMP1
{
    public partial class Form5 : Form
    {
        DataSet ds = new DataSet();
        string storepcs,userid,locate = string.Empty;
        int index = 0;
        //string mawb, loc, pcs = string.Empty;
        public Form5(string user,DataSet data,int index,string storepcs,string location)
        {
            InitializeComponent();
            this.ds = data;
            this.storepcs = storepcs;
            this.locate = location;
            this.index = index;
            this.userid = user;
            if (ds == null)
            {
                MessageBox.Show("Data not found");
            }
            else
            {
                Confirm conn = new Confirm(userid,ds, storepcs,locate, index);
                this.Controls.Add(conn);
                //this.Close();
            }
          

        }

        private void Form5_Load(object sender, EventArgs e)
        {

            Confirm conn = new Confirm(userid,ds, storepcs,locate, index);
                this.Controls.Add(conn);
            
            
        }
    }
}